var gaode = new ol.layer.Tile({
  title: '高德地图',
  source: new ol.source.XYZ({
    url: 'http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}',
    wrapX: false,
    crossOrigin: 'Anonymous',
  }),
});
const key = '8145df71f6166c9b9bdfe542f7475320';
/* ---------------天地图矢量图层-------------------- */
var tianditu = new ol.layer.Tile({
  name: '天地图',
  source: new ol.source.XYZ({
    url:
      'http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=' + key, //parent.TiandituKey()为天地图密钥,
    wrapX: false,
    crossOrigin: 'Anonymous',
  }),
});
/* ---------------天地图矢量注记图层-------------------- */
var tiandituZJ = new ol.layer.Tile({
  name: '天地图注记',
  source: new ol.source.XYZ({
    url:
      'http://t0.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=' + key, //parent.TiandituKey()为天地图密钥,
    wrapX: false,
    crossOrigin: 'Anonymous',
  }),
});
/* ---------------天地图影像图层-------------------- */
var tiandituYX = new ol.layer.Tile({
  name: '天地图影像',
  source: new ol.source.XYZ({
    url:
      'http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=' + key, //parent.TiandituKey()为天地图密钥,
    wrapX: false,
    crossOrigin: 'Anonymous',
  }),
});
// var docLayer = new Zondy.Map.Doc("", "guang01", {
//   ip: "localhost",
//   port: 6163,
//   crossOrigin: "Anonymous",
// });
